#include "CRectangle.h"
CRectangle::CRectangle() :width(3), height(10)
{}
CRectangle::CRectangle(double width, double height)
{
	this->width = width;
	this->height = height;
}
CRectangle::CRectangle(const CRectangle & rect)
{
	this->width = rect.width;
	this->height = rect.height;
}
CRectangle::~CRectangle()
{}
double CRectangle::getArea() const
{
	return width*height;
}
double CRectangle::getWidth() const
{
	return width;
}
void CRectangle::setWidth(double width)
{
	this->width = width;
}
double CRectangle::getHeight() const
{
	return height;
}
void CRectangle::setHeight(double height)
{
	this->height = height;
}

const CRectangle & CRectangle::operator++()
{
	++width;
	++height;
	return *this;
}


